
<template>
	<view>
			<input type="text" placeholder="搜索你想要的商品" class="inp" @focus="foinp">
	        
			
		</view>
		
</template>

<script>
	export default {
			
		data(){
		},
			
		mounted(){
			uni.request({
				url:'http://111.67.198.176:8112/category/categoryInfo',
				method:'GET',
				data: {
				        text: 'uni.request'
				    },
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
				success:(res)=>{
					console.log(res.data);
					 this.text = 'request success';
				}
			})
		},
		methods:{
			foinp(){
				uni.navigateTo({
					url:'/pages/search/search'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.inp{
		background-color: #ccc;
		text-align: center;
		border-radius: 25px;
	}
</style>